package helper.form.buttons;

public class DefaultButton extends BasicButton {

	public DefaultButton(String value,String name) {
		super(value,name);
	}
	
	public DefaultButton(String value,String name, String cssClass) {
		super(value,name,cssClass);
	}
	
	public DefaultButton(String value,String name, String cssClass, String otherHtml) {
		super(value,name,cssClass,otherHtml);
	}
	
	@Override
	public String render() {
		String output="<input type=\"Button\" name=\""+this.name+"\"";
		output+="value =\""+this.value+"\"";
		if(!this.cssClass.isEmpty()) {
			output+="class =\""+this.cssClass+"\"";
		}
		if(!this.otherHtml.isEmpty()) {
			output+=this.otherHtml;
		}
		
		output+=" />\n";
		
		return output;
	}

}
